

export const PAGE_SIZE = 10;
// input 长度
export const INPUT_SIZE = 100;
// input english 长度
export const INPUT_ENGLISH_SIZE = 100;
// textarea 长度
export const TAREA_SIZE = 300;

export const INPUT_NUMBER_SIZE = 6;

// 字典项前缀
export const DICT_PREFIX = 'DICT_';

// 手机号码验证
export const phoneReg = /^1[3456789]\d{9}$/;

// 折扣0.01-1
export const saleReg = /^1(\.00?)?$|^0\.(0[1-9]|[1-9][0-9]?)$|^0\.[0-9]$/

//排序 数字
export const sortReg = /^\d+$/;
// 区间 数量 不等于0 数字
export const numReg = /^(?!0)\d+$/;

// 场次批量导入模板
export const fieldExcelTempUrl = '/golf/resource/model/Events.xlsx'

//比赛成绩导入模板
export const fieldScoreExcelTempUrl = '/golf/resource/model/score.xlsx'
//业余成绩导入模板
export const fieldAmateurScoreExcelTempUrl = '/golf/resource/model/amateurscore.xlsx'
//青少年成绩导入模板
export const fieldTeenScoreExcelTempUrl = '/golf/resource/model/teenagerscore.xlsx '
// 名次导入模板
export const rankExcelTempUrl = '/golf/resource/model/Rank.xlsx'
// 阵容加分导入模板
export const teamScoreExcelTempUrl = '/golf/resource/model/TeamScore.xlsx'
//阵容值导入模板
export const teamExcelTempUrl = '/golf/resource/model/Team.xlsx'



export default {
  PAGE_SIZE,
  INPUT_SIZE,
  INPUT_ENGLISH_SIZE,
  INPUT_NUMBER_SIZE,
  DICT_PREFIX,
  phoneReg,
  saleReg,
  sortReg,
  numReg,
  fieldExcelTempUrl,
  fieldScoreExcelTempUrl,
  fieldAmateurScoreExcelTempUrl,
  fieldTeenScoreExcelTempUrl,
  rankExcelTempUrl,
  teamScoreExcelTempUrl,
  teamExcelTempUrl
};
